/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * jifCivil.java
 *
 * Created on 15/03/2011, 05:58:08 PM
 */

package CivilForm;

import bd_registro_civil.*;
//import bd_registro_civil.Comparecio;
//import bd_registro_civil.Genero;
//import bd_registro_civil.Juez;
//import bd_registro_civil.Parentesco;
//import bd_registro_civil.Testigo;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.RollbackException;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import org.jdesktop.application.Action;
import org.jdesktop.application.Task;
import org.jdesktop.beansbinding.AbstractBindingListener;
import org.jdesktop.beansbinding.Binding;
import org.jdesktop.beansbinding.PropertyStateEvent;

/**
 *
 * @author Karlita
 */
public class jifCivil extends javax.swing.JInternalFrame {

    private boolean n = false, n2 = false, n3 = false, n4 = false;

    /** Creates new form jifCivil */
    public jifCivil()
    {
        initComponents();
        initListenersActa();
        initListenersComparecio();
        initListenersJuez();
        initListenersTestigo();
        validadorNumeros(jTextField14);
        validadorNumeros(jTextField21);
        validadorNumeros(jTextField9);
        comboboxIndex();
        panelesVisibles();
        emRegistro.getTransaction().begin();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        bindingGroup = new org.jdesktop.beansbinding.BindingGroup();

        jTabbedPane3 = new javax.swing.JTabbedPane();
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(db_proyect.Db_proyectApp.class).getContext().getResourceMap(jifCivil.class);
        emRegistro = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory(resourceMap.getString("emRegistro.persistenceUnit")).createEntityManager(); // NOI18N
        queryActa = java.beans.Beans.isDesignTime() ? null : emRegistro.createQuery(resourceMap.getString("queryActa.query")); // NOI18N
        listActas = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : org.jdesktop.observablecollections.ObservableCollections.observableList(queryActa.getResultList());
        queryComparecio = java.beans.Beans.isDesignTime() ? null : emRegistro.createQuery(resourceMap.getString("queryComparecio.query")); // NOI18N
        listComparecio = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : org.jdesktop.observablecollections.ObservableCollections.observableList(queryComparecio.getResultList());
        queryJuez = java.beans.Beans.isDesignTime() ? null : emRegistro.createQuery(resourceMap.getString("queryJuez.query")); // NOI18N
        listJuez = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : org.jdesktop.observablecollections.ObservableCollections.observableList(queryJuez.getResultList());
        queryTestigo = java.beans.Beans.isDesignTime() ? null : emRegistro.createQuery(resourceMap.getString("queryTestigo.query")); // NOI18N
        listTestigo = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : org.jdesktop.observablecollections.ObservableCollections.observableList(queryTestigo.getResultList());
        generoQuery = java.beans.Beans.isDesignTime() ? null : emRegistro.createQuery("SELECT g FROM Genero g");
        generoList = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : generoQuery.getResultList();
        renderGenero1 = new UtilidadesRegistro.RenderGenero();
        renderComparecio1 = new UtilidadesRegistro.RenderComparecio();
        renderJuez1 = new UtilidadesRegistro.RenderJuez();
        renderTestigo1 = new UtilidadesRegistro.RenderTestigo();
        parentescoQuery = java.beans.Beans.isDesignTime() ? null : emRegistro.createQuery("SELECT p FROM Parentesco p");
        parentescoList = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : parentescoQuery.getResultList();
        renderParentesco1 = new UtilidadesRegistro.RenderParentesco();
        renderActa1 = new UtilidadesRegistro.RenderActa();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtActas = new javax.swing.JTable();
        jpDatosActa = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        txtLugarNac = new javax.swing.JTextField();
        jTextField4 = new javax.swing.JTextField();
        jTextField5 = new javax.swing.JTextField();
        jdcFechaReg = new com.toedter.calendar.JDateChooser();
        jLabel4 = new javax.swing.JLabel();
        jDateChooser2 = new com.toedter.calendar.JDateChooser();
        jLabel3 = new javax.swing.JLabel();
        jtdHoraNac = new com.toedter.calendar.JTextFieldDateEditor();
        jTextFieldDateEditor1 = new com.toedter.calendar.JTextFieldDateEditor();
        jLabel8 = new javax.swing.JLabel();
        cboGenero = new javax.swing.JComboBox();
        jLabel9 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        cboJuezActa = new javax.swing.JComboBox();
        cboTestigoActa = new javax.swing.JComboBox();
        cboComparecioActa = new javax.swing.JComboBox();
        jPanel6 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jPanel10 = new javax.swing.JPanel();
        jPanel16 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jtJueces = new javax.swing.JTable();
        jpDatosJuez = new javax.swing.JPanel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jTextField14 = new javax.swing.JTextField();
        jTextField15 = new javax.swing.JTextField();
        jPanel18 = new javax.swing.JPanel();
        jButton13 = new javax.swing.JButton();
        jButton15 = new javax.swing.JButton();
        jButton16 = new javax.swing.JButton();
        jButton17 = new javax.swing.JButton();
        jPanel11 = new javax.swing.JPanel();
        jPanel19 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jtTestigo = new javax.swing.JTable();
        jpDatosTestigo = new javax.swing.JPanel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jTextField20 = new javax.swing.JTextField();
        jTextField21 = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        cboActaTestigo = new javax.swing.JComboBox();
        jPanel21 = new javax.swing.JPanel();
        jButton18 = new javax.swing.JButton();
        jButton19 = new javax.swing.JButton();
        jButton20 = new javax.swing.JButton();
        jButton21 = new javax.swing.JButton();
        jPanel8 = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jtComparecio = new javax.swing.JTable();
        jpDatosCompa = new javax.swing.JPanel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jTextField8 = new javax.swing.JTextField();
        jTextField9 = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        cboActa = new javax.swing.JComboBox();
        jLabel15 = new javax.swing.JLabel();
        cboParentesco = new javax.swing.JComboBox();
        jPanel4 = new javax.swing.JPanel();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();

        jTabbedPane3.setName("jTabbedPane3"); // NOI18N

        renderGenero1.setText(resourceMap.getString("renderGenero1.text")); // NOI18N
        renderGenero1.setName("renderGenero1"); // NOI18N

        renderComparecio1.setText(resourceMap.getString("renderComparecio1.text")); // NOI18N
        renderComparecio1.setName("renderComparecio1"); // NOI18N

        renderJuez1.setText(resourceMap.getString("renderJuez1.text")); // NOI18N
        renderJuez1.setName("renderJuez1"); // NOI18N

        renderTestigo1.setText(resourceMap.getString("renderTestigo1.text")); // NOI18N
        renderTestigo1.setName("renderTestigo1"); // NOI18N

        renderParentesco1.setText(resourceMap.getString("renderParentesco1.text")); // NOI18N
        renderParentesco1.setName("renderParentesco1"); // NOI18N

        renderActa1.setText(resourceMap.getString("renderActa1.text")); // NOI18N
        renderActa1.setName("renderActa1"); // NOI18N

        setClosable(true);
        setResizable(true);
        setFrameIcon(resourceMap.getIcon("Form.frameIcon")); // NOI18N
        setName("Form"); // NOI18N

        jTabbedPane1.setName("jtpActas"); // NOI18N

        jPanel1.setName("jpActas"); // NOI18N

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jpRegActas.border.title"))); // NOI18N
        jPanel2.setName("jpRegActas"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jtActas.setName("jtActas"); // NOI18N

        org.jdesktop.swingbinding.JTableBinding jTableBinding = org.jdesktop.swingbinding.SwingBindings.createJTableBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, listActas, jtActas);
        org.jdesktop.swingbinding.JTableBinding.ColumnBinding columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${nombre}"));
        columnBinding.setColumnName("Nombre");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${app}"));
        columnBinding.setColumnName("App");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${apm}"));
        columnBinding.setColumnName("Apm");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${curp}"));
        columnBinding.setColumnName("Curp");
        columnBinding.setColumnClass(String.class);
        bindingGroup.addBinding(jTableBinding);
        jTableBinding.bind();
        jScrollPane1.setViewportView(jtActas);
        jtActas.getColumnModel().getColumn(0).setHeaderValue(resourceMap.getString("jtActas.columnModel.title0")); // NOI18N
        jtActas.getColumnModel().getColumn(1).setHeaderValue(resourceMap.getString("jtActas.columnModel.title1")); // NOI18N
        jtActas.getColumnModel().getColumn(2).setHeaderValue(resourceMap.getString("jtActas.columnModel.title2")); // NOI18N
        jtActas.getColumnModel().getColumn(3).setHeaderValue(resourceMap.getString("jtActas.columnModel.title3")); // NOI18N

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 475, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jpDatosActa.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jpOtros.border.title"))); // NOI18N
        jpDatosActa.setName("jpOtros"); // NOI18N
        jpDatosActa.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N
        jpDatosActa.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(16, 159, -1, -1));

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N
        jpDatosActa.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(16, 200, -1, -1));

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N
        jpDatosActa.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(16, 260, -1, -1));

        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N
        jpDatosActa.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(16, 301, -1, -1));

        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N
        jpDatosActa.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(16, 42, 251, -1));

        txtLugarNac.setName("txtLugarNac"); // NOI18N

        org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtActas, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.lugarNac}"), txtLugarNac, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        jpDatosActa.add(txtLugarNac, new org.netbeans.lib.awtextra.AbsoluteConstraints(128, 39, 117, -1));

        jTextField4.setName("txtLibro"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtActas, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.libro}"), jTextField4, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        jpDatosActa.add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 257, 73, -1));

        jTextField5.setName("txtHoja"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtActas, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.hoja}"), jTextField5, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        jpDatosActa.add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 295, 73, -1));

        jdcFechaReg.setName("jdcFechaReg"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtActas, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.fechaReg}"), jdcFechaReg, org.jdesktop.beansbinding.BeanProperty.create("date"));
        bindingGroup.addBinding(binding);

        jpDatosActa.add(jdcFechaReg, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 159, 115, -1));

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N
        jpDatosActa.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(16, 124, -1, -1));

        jDateChooser2.setName("jDateChooser2"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtActas, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.fechaNac}"), jDateChooser2, org.jdesktop.beansbinding.BeanProperty.create("date"));
        bindingGroup.addBinding(binding);

        jpDatosActa.add(jDateChooser2, new org.netbeans.lib.awtextra.AbsoluteConstraints(128, 77, 117, -1));

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N
        jpDatosActa.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(16, 77, -1, -1));

        jtdHoraNac.setDateFormatString(resourceMap.getString("jtdHoraNac.dateFormatString")); // NOI18N
        jtdHoraNac.setMaskVisible(true);
        jtdHoraNac.setName("jtdHoraNac"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtActas, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.horaNac}"), jtdHoraNac, org.jdesktop.beansbinding.BeanProperty.create("date"));
        bindingGroup.addBinding(binding);

        jpDatosActa.add(jtdHoraNac, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 121, -1, -1));

        jTextFieldDateEditor1.setDateFormatString(resourceMap.getString("jTextFieldDateEditor1.dateFormatString")); // NOI18N
        jTextFieldDateEditor1.setMaskVisible(true);
        jTextFieldDateEditor1.setName("jTextFieldDateEditor1"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtActas, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.horaReg}"), jTextFieldDateEditor1, org.jdesktop.beansbinding.BeanProperty.create("date"));
        bindingGroup.addBinding(binding);

        jpDatosActa.add(jTextFieldDateEditor1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 197, -1, -1));

        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N
        jpDatosActa.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 31, -1, -1));

        cboGenero.setName("cboGenero"); // NOI18N
        cboGenero.setRenderer(renderGenero1);

        org.jdesktop.swingbinding.JComboBoxBinding jComboBoxBinding = org.jdesktop.swingbinding.SwingBindings.createJComboBoxBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, generoList, cboGenero);
        bindingGroup.addBinding(jComboBoxBinding);
        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtActas, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.genero}"), cboGenero, org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
        bindingGroup.addBinding(binding);

        jpDatosActa.add(cboGenero, new org.netbeans.lib.awtextra.AbsoluteConstraints(363, 31, 109, -1));

        jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
        jLabel9.setName("jLabel9"); // NOI18N
        jpDatosActa.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 98, -1, -1));

        jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
        jLabel12.setName("jLabel12"); // NOI18N
        jpDatosActa.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 180, -1, -1));

        jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
        jLabel13.setName("jLabel13"); // NOI18N
        jpDatosActa.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 250, -1, -1));

        cboJuezActa.setName("cboJuezActa"); // NOI18N
        cboJuezActa.setRenderer(renderJuez1);

        jComboBoxBinding = org.jdesktop.swingbinding.SwingBindings.createJComboBoxBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, listJuez, cboJuezActa);
        bindingGroup.addBinding(jComboBoxBinding);
        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtActas, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.juez}"), cboJuezActa, org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
        bindingGroup.addBinding(binding);

        jpDatosActa.add(cboJuezActa, new org.netbeans.lib.awtextra.AbsoluteConstraints(364, 95, 144, -1));

        cboTestigoActa.setName("cboTestigoActa"); // NOI18N
        cboTestigoActa.setRenderer(renderTestigo1);

        org.jdesktop.beansbinding.ELProperty eLProperty = org.jdesktop.beansbinding.ELProperty.create("${selectedElement.testigoList}");
        jComboBoxBinding = org.jdesktop.swingbinding.SwingBindings.createJComboBoxBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtActas, eLProperty, cboTestigoActa);
        bindingGroup.addBinding(jComboBoxBinding);

        jpDatosActa.add(cboTestigoActa, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 250, 180, -1));

        cboComparecioActa.setName("cboComparecioActa"); // NOI18N
        cboComparecioActa.setRenderer(renderComparecio1);

        eLProperty = org.jdesktop.beansbinding.ELProperty.create("${selectedElement.comparecioList}");
        jComboBoxBinding = org.jdesktop.swingbinding.SwingBindings.createJComboBoxBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtActas, eLProperty, cboComparecioActa);
        bindingGroup.addBinding(jComboBoxBinding);

        jpDatosActa.add(cboComparecioActa, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 180, 150, -1));

        jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jpAcciones.border.title"))); // NOI18N
        jPanel6.setName("jpAcciones"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(db_proyect.Db_proyectApp.class).getContext().getActionMap(jifCivil.class, this);
        jButton1.setAction(actionMap.get("agregarActa")); // NOI18N
        jButton1.setText(resourceMap.getString("btbAgregarAc.text")); // NOI18N
        jButton1.setName("btbAgregarAc"); // NOI18N

        jButton2.setAction(actionMap.get("eliiminarActa")); // NOI18N
        jButton2.setText(resourceMap.getString("btnEliminarAc.text")); // NOI18N
        jButton2.setName("btnEliminarAc"); // NOI18N

        jButton3.setAction(actionMap.get("guardarActa")); // NOI18N
        jButton3.setText(resourceMap.getString("btnGuardarAc.text")); // NOI18N
        jButton3.setName("btnGuardarAc"); // NOI18N

        jButton4.setAction(actionMap.get("refreshActa")); // NOI18N
        jButton4.setText(resourceMap.getString("btnRefreshAc.text")); // NOI18N
        jButton4.setName("btnRefreshAc"); // NOI18N

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(69, 69, 69)
                        .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jButton3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE))))
                .addGap(92, 92, 92))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGap(51, 51, 51)
                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28)
                .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(42, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jpDatosActa, javax.swing.GroupLayout.DEFAULT_SIZE, 520, Short.MAX_VALUE)
                        .addGap(37, 37, 37)
                        .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(101, 101, 101))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(556, Short.MAX_VALUE))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jpDatosActa, javax.swing.GroupLayout.PREFERRED_SIZE, 370, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(136, Short.MAX_VALUE))
        );

        jpDatosActa.getAccessibleContext().setAccessibleName(resourceMap.getString("jPanel5.AccessibleContext.accessibleName")); // NOI18N

        jTabbedPane1.addTab(resourceMap.getString("jpActas.TabConstraints.tabTitle"), jPanel1); // NOI18N

        jPanel10.setName("jpJuez"); // NOI18N

        jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jpJuez.border.title"))); // NOI18N
        jPanel16.setName("jpJuez"); // NOI18N

        jScrollPane3.setName("jScrollPane3"); // NOI18N

        jtJueces.setName("jtJueces"); // NOI18N

        jTableBinding = org.jdesktop.swingbinding.SwingBindings.createJTableBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, listJuez, jtJueces);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${nombre}"));
        columnBinding.setColumnName("Nombre");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${app}"));
        columnBinding.setColumnName("App");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${apm}"));
        columnBinding.setColumnName("Apm");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${firma}"));
        columnBinding.setColumnName("Firma");
        columnBinding.setColumnClass(String.class);
        bindingGroup.addBinding(jTableBinding);
        jTableBinding.bind();
        jScrollPane3.setViewportView(jtJueces);
        jtJueces.getColumnModel().getColumn(0).setHeaderValue(resourceMap.getString("jtJueces.columnModel.title0")); // NOI18N
        jtJueces.getColumnModel().getColumn(1).setHeaderValue(resourceMap.getString("jtJueces.columnModel.title1")); // NOI18N
        jtJueces.getColumnModel().getColumn(2).setHeaderValue(resourceMap.getString("jtJueces.columnModel.title2")); // NOI18N
        jtJueces.getColumnModel().getColumn(3).setHeaderValue(resourceMap.getString("jtJueces.columnModel.title3")); // NOI18N

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 482, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(34, Short.MAX_VALUE))
        );

        jpDatosJuez.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jpOtrosJue.border.title"))); // NOI18N
        jpDatosJuez.setName("jpOtrosJue"); // NOI18N

        jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N
        jLabel16.setName("jLabel16"); // NOI18N

        jLabel17.setText(resourceMap.getString("jLabel17.text")); // NOI18N
        jLabel17.setName("jLabel17"); // NOI18N

        jTextField14.setName("txtCedulaJue"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtJueces, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.cedula}"), jTextField14, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        jTextField15.setName("txtJuzgadoJue"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtJueces, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.numJuzgado}"), jTextField15, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        javax.swing.GroupLayout jpDatosJuezLayout = new javax.swing.GroupLayout(jpDatosJuez);
        jpDatosJuez.setLayout(jpDatosJuezLayout);
        jpDatosJuezLayout.setHorizontalGroup(
            jpDatosJuezLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpDatosJuezLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpDatosJuezLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel16)
                    .addComponent(jLabel17))
                .addGap(27, 27, 27)
                .addGroup(jpDatosJuezLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jTextField15)
                    .addComponent(jTextField14, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE))
                .addContainerGap(118, Short.MAX_VALUE))
        );
        jpDatosJuezLayout.setVerticalGroup(
            jpDatosJuezLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpDatosJuezLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(jpDatosJuezLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(38, 38, 38)
                .addGroup(jpDatosJuezLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17)
                    .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(88, Short.MAX_VALUE))
        );

        jPanel18.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jpAccionesJue.border.title"))); // NOI18N
        jPanel18.setName("jpAccionesJue"); // NOI18N

        jButton13.setAction(actionMap.get("agregarJuez")); // NOI18N
        jButton13.setText(resourceMap.getString("btnAgregarJue.text")); // NOI18N
        jButton13.setName("btnAgregarJue"); // NOI18N

        jButton15.setAction(actionMap.get("eliminaJuez")); // NOI18N
        jButton15.setText(resourceMap.getString("btnEliminarJue.text")); // NOI18N
        jButton15.setName("btnEliminarJue"); // NOI18N

        jButton16.setAction(actionMap.get("guardarJuez")); // NOI18N
        jButton16.setText(resourceMap.getString("btnGuardarJue.text")); // NOI18N
        jButton16.setName("btnGuardarJue"); // NOI18N

        jButton17.setAction(actionMap.get("refreshJuez")); // NOI18N
        jButton17.setText(resourceMap.getString("btnRefreshJue.text")); // NOI18N
        jButton17.setName("btnRefreshJue"); // NOI18N

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addGap(58, 58, 58)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jButton17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton15, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 366, Short.MAX_VALUE))
                .addContainerGap(55, Short.MAX_VALUE))
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton15, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton16, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26)
                .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(105, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addComponent(jpDatosJuez, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(117, 117, 117)
                        .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(107, Short.MAX_VALUE))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(75, 75, 75)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jpDatosJuez, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab(resourceMap.getString("jpJuez.TabConstraints.tabTitle"), jPanel10); // NOI18N

        jPanel11.setName("jpTestigo"); // NOI18N

        jPanel19.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel19.border.title"))); // NOI18N
        jPanel19.setName("jPanel19"); // NOI18N

        jScrollPane4.setName("jScrollPane4"); // NOI18N

        jtTestigo.setName("jtTestigo"); // NOI18N

        jTableBinding = org.jdesktop.swingbinding.SwingBindings.createJTableBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, listTestigo, jtTestigo);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${nombre}"));
        columnBinding.setColumnName("Nombre");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${app}"));
        columnBinding.setColumnName("App");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${apm}"));
        columnBinding.setColumnName("Apm");
        columnBinding.setColumnClass(String.class);
        bindingGroup.addBinding(jTableBinding);
        jTableBinding.bind();
        jScrollPane4.setViewportView(jtTestigo);
        jtTestigo.getColumnModel().getColumn(0).setHeaderValue(resourceMap.getString("jtTestigo.columnModel.title0")); // NOI18N
        jtTestigo.getColumnModel().getColumn(1).setHeaderValue(resourceMap.getString("jtTestigo.columnModel.title1")); // NOI18N
        jtTestigo.getColumnModel().getColumn(2).setHeaderValue(resourceMap.getString("jtTestigo.columnModel.title2")); // NOI18N

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 496, Short.MAX_VALUE)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(34, Short.MAX_VALUE))
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 145, Short.MAX_VALUE)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19, Short.MAX_VALUE))
        );

        jpDatosTestigo.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jpDatosTestigo.border.title"))); // NOI18N
        jpDatosTestigo.setName("jpDatosTestigo"); // NOI18N

        jLabel22.setText(resourceMap.getString("jLabel22.text")); // NOI18N
        jLabel22.setName("jLabel22"); // NOI18N

        jLabel23.setText(resourceMap.getString("jLabel23.text")); // NOI18N
        jLabel23.setName("jLabel23"); // NOI18N

        jTextField20.setName("txtNacionalidadTes"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtTestigo, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.nacionalidad}"), jTextField20, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        jTextField21.setName("txtEdadTes"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtTestigo, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.edad}"), jTextField21, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        jLabel18.setText(resourceMap.getString("jLabel18.text")); // NOI18N
        jLabel18.setName("jLabel18"); // NOI18N

        cboActaTestigo.setName("cboActaTestigo"); // NOI18N
        cboActaTestigo.setRenderer(renderActa1);

        jComboBoxBinding = org.jdesktop.swingbinding.SwingBindings.createJComboBoxBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, listActas, cboActaTestigo);
        bindingGroup.addBinding(jComboBoxBinding);
        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtTestigo, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.acta}"), cboActaTestigo, org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
        bindingGroup.addBinding(binding);

        javax.swing.GroupLayout jpDatosTestigoLayout = new javax.swing.GroupLayout(jpDatosTestigo);
        jpDatosTestigo.setLayout(jpDatosTestigoLayout);
        jpDatosTestigoLayout.setHorizontalGroup(
            jpDatosTestigoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpDatosTestigoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpDatosTestigoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel22)
                    .addComponent(jLabel23))
                .addGap(30, 30, 30)
                .addGroup(jpDatosTestigoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jpDatosTestigoLayout.createSequentialGroup()
                        .addComponent(jTextField20, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(47, 47, 47)
                        .addComponent(jLabel18)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cboActaTestigo, 0, 181, Short.MAX_VALUE))
                    .addComponent(jTextField21, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jpDatosTestigoLayout.setVerticalGroup(
            jpDatosTestigoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpDatosTestigoLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jpDatosTestigoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(jTextField20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel18)
                    .addComponent(cboActaTestigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(46, 46, 46)
                .addGroup(jpDatosTestigoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23)
                    .addComponent(jTextField21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(52, Short.MAX_VALUE))
        );

        jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel21.border.title"))); // NOI18N
        jPanel21.setName("jPanel21"); // NOI18N

        jButton18.setAction(actionMap.get("agregarTestigo")); // NOI18N
        jButton18.setText(resourceMap.getString("btnAgregarTes.text")); // NOI18N
        jButton18.setName("btnAgregarTes"); // NOI18N

        jButton19.setAction(actionMap.get("eliminarTestigo")); // NOI18N
        jButton19.setText(resourceMap.getString("btnEliminarTes.text")); // NOI18N
        jButton19.setName("btnEliminarTes"); // NOI18N

        jButton20.setAction(actionMap.get("guardarTestigo")); // NOI18N
        jButton20.setText(resourceMap.getString("btnGuardarTes.text")); // NOI18N
        jButton20.setName("btnGuardarTes"); // NOI18N

        jButton21.setAction(actionMap.get("refreshTestigo")); // NOI18N
        jButton21.setText(resourceMap.getString("btnRefreshTes.text")); // NOI18N
        jButton21.setName("btnRefreshTes"); // NOI18N

        javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);
        jPanel21.setLayout(jPanel21Layout);
        jPanel21Layout.setHorizontalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jButton21, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton20, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton18, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE))
                .addContainerGap(37, Short.MAX_VALUE))
        );
        jPanel21Layout.setVerticalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton18, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton19, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton21, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(133, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(jpDatosTestigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(34, 34, 34)
                        .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(113, 113, 113))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(60, 60, 60)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jpDatosTestigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(47, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab(resourceMap.getString("jpTestigo.TabConstraints.tabTitle"), jPanel11); // NOI18N

        jPanel8.setName("jpComparecio"); // NOI18N

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jpPerComp.border.title"))); // NOI18N
        jPanel9.setName("jpPerComp"); // NOI18N

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        jtComparecio.setName("jtComparecio"); // NOI18N

        jTableBinding = org.jdesktop.swingbinding.SwingBindings.createJTableBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, listComparecio, jtComparecio);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${nombre}"));
        columnBinding.setColumnName("Nombre");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${app}"));
        columnBinding.setColumnName("App");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${apm}"));
        columnBinding.setColumnName("Apm");
        columnBinding.setColumnClass(String.class);
        bindingGroup.addBinding(jTableBinding);
        jTableBinding.bind();
        jScrollPane2.setViewportView(jtComparecio);
        jtComparecio.getColumnModel().getColumn(0).setHeaderValue(resourceMap.getString("jtComparecio.columnModel.title0")); // NOI18N
        jtComparecio.getColumnModel().getColumn(1).setHeaderValue(resourceMap.getString("jtComparecio.columnModel.title1")); // NOI18N
        jtComparecio.getColumnModel().getColumn(2).setHeaderValue(resourceMap.getString("jtComparecio.columnModel.title2")); // NOI18N

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(40, Short.MAX_VALUE))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(34, Short.MAX_VALUE))
        );

        jpDatosCompa.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jpOtrosComp.border.title"))); // NOI18N
        jpDatosCompa.setName("jpOtrosComp"); // NOI18N

        jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
        jLabel10.setName("jLabel10"); // NOI18N

        jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N
        jLabel11.setName("jLabel11"); // NOI18N

        jTextField8.setName("txtNacionalidad"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtComparecio, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.nacionalidad}"), jTextField8, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        jTextField9.setName("txtEdad"); // NOI18N

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtComparecio, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.edad}"), jTextField9, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
        jLabel14.setName("jLabel14"); // NOI18N

        cboActa.setName("cboActa"); // NOI18N
        cboActa.setRenderer(renderActa1);

        jComboBoxBinding = org.jdesktop.swingbinding.SwingBindings.createJComboBoxBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, listActas, cboActa);
        bindingGroup.addBinding(jComboBoxBinding);
        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtComparecio, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.acta}"), cboActa, org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
        bindingGroup.addBinding(binding);

        jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N
        jLabel15.setName("jLabel15"); // NOI18N

        cboParentesco.setName("cboParentesco"); // NOI18N
        cboParentesco.setRenderer(renderParentesco1);

        jComboBoxBinding = org.jdesktop.swingbinding.SwingBindings.createJComboBoxBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, parentescoList, cboParentesco);
        bindingGroup.addBinding(jComboBoxBinding);
        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jtComparecio, org.jdesktop.beansbinding.ELProperty.create("${selectedElement_IGNORE_ADJUSTING.parentesco}"), cboParentesco, org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
        bindingGroup.addBinding(binding);

        javax.swing.GroupLayout jpDatosCompaLayout = new javax.swing.GroupLayout(jpDatosCompa);
        jpDatosCompa.setLayout(jpDatosCompaLayout);
        jpDatosCompaLayout.setHorizontalGroup(
            jpDatosCompaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpDatosCompaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpDatosCompaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jpDatosCompaLayout.createSequentialGroup()
                        .addGroup(jpDatosCompaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel11)
                            .addComponent(jLabel10))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jpDatosCompaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField9, javax.swing.GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE)
                            .addComponent(jTextField8, javax.swing.GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE))
                        .addGap(72, 72, 72)
                        .addComponent(jLabel15))
                    .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpDatosCompaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cboActa, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cboParentesco, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jpDatosCompaLayout.setVerticalGroup(
            jpDatosCompaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpDatosCompaLayout.createSequentialGroup()
                .addGroup(jpDatosCompaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jpDatosCompaLayout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addGroup(jpDatosCompaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel10)
                            .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(24, 24, 24)
                        .addGroup(jpDatosCompaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jpDatosCompaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jpDatosCompaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cboActa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel14))
                        .addGap(35, 35, 35)
                        .addGroup(jpDatosCompaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel15)
                            .addComponent(cboParentesco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(34, Short.MAX_VALUE))
        );

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jpAccComp.border.title"))); // NOI18N
        jPanel4.setName("jpAccComp"); // NOI18N
        jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jButton5.setAction(actionMap.get("agregarComparecio")); // NOI18N
        jButton5.setText(resourceMap.getString("btnAgregarCom.text")); // NOI18N
        jButton5.setName("btnAgregarCom"); // NOI18N
        jPanel4.add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 30, 284, 50));

        jButton6.setAction(actionMap.get("eliminaComparecio")); // NOI18N
        jButton6.setText(resourceMap.getString("btnEliminarCom.text")); // NOI18N
        jButton6.setName("btnEliminarCom"); // NOI18N
        jPanel4.add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 90, 284, 47));

        jButton7.setAction(actionMap.get("guardarComparecio")); // NOI18N
        jButton7.setText(resourceMap.getString("btnGuardarCom.text")); // NOI18N
        jButton7.setName("btnGuardarCom"); // NOI18N
        jPanel4.add(jButton7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 150, 284, 44));

        jButton8.setAction(actionMap.get("refreshComparecio")); // NOI18N
        jButton8.setText(resourceMap.getString("btnRefreshCom.text")); // NOI18N
        jButton8.setName("btnRefreshCom"); // NOI18N
        jPanel4.add(jButton8, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 200, 284, 44));

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addComponent(jpDatosCompa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGap(101, 101, 101)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 367, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(81, 81, 81))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(47, 47, 47)
                        .addComponent(jpDatosCompa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(184, 184, 184)
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(224, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab(resourceMap.getString("jpComparecio.TabConstraints.tabTitle"), jPanel8); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1078, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 709, Short.MAX_VALUE)
                .addContainerGap())
        );

        bindingGroup.bind();

        pack();
    }// </editor-fold>//GEN-END:initComponents
    //*********************************AGREGAR********************************************/////
    //////////////////////////////////ACTA///////////////////////////////////////////////
    @Action
    public void agregarActa()
    {
        try {
        Acta nuevaActa = new Acta();
        emRegistro.persist(nuevaActa);
        listActas.add(nuevaActa);
        int fila = listActas.size() - 1;
        jtActas.setRowSelectionInterval(fila, fila);
        jtActas.scrollRectToVisible(jtActas.getCellRect(fila, 0, true));
        setNecesitaGuardarActa(true);
        }
        catch (Exception e) {
        JOptionPane.showMessageDialog(null, e.getMessage());
        setNecesitaGuardarActa(false);
        }
    }
    //////////////////////////////////COMPARECIO///////////////////////////////////////////////
    @Action
    public void agregarComparecio()
    {
        try {
        Comparecio nuevoCom = new Comparecio();
        emRegistro.persist(nuevoCom);
        listComparecio.add(nuevoCom);
        int fila = listComparecio.size() - 1;
        jtComparecio.setRowSelectionInterval(fila, fila);
        jtComparecio.scrollRectToVisible(jtComparecio.getCellRect(fila, 0, true));
        setNecesitaGuardarComparecio(true);
        }
        catch (Exception e) {
        JOptionPane.showMessageDialog(null, e.getMessage());
        setNecesitaGuardarComparecio(false);
        }
    }
    //////////////////////////////////JUEZ///////////////////////////////////////////////
    @Action
    public void agregarJuez()
    {
        try {
        Juez  nuevoJuez= new Juez();
        emRegistro.persist(nuevoJuez);
        listJuez.add(nuevoJuez);
        int fila = listJuez.size() - 1;
        jtJueces.setRowSelectionInterval(fila, fila);
        jtJueces.scrollRectToVisible(jtJueces.getCellRect(fila, 0, true));
        setNecesitaGuardarJuez(true);
        }
        catch (Exception e) {
        JOptionPane.showMessageDialog(null, e.getMessage());
        setNecesitaGuardarJuez(false);
        }
    }
    //////////////////////////////////TESTIGO///////////////////////////////////////////////
     @Action
    public void agregarTestigo()
    {
        try {
        Testigo nuevoTest= new Testigo();
        emRegistro.persist(nuevoTest);
        listTestigo.add(nuevoTest);
        int fila = listTestigo.size() - 1;
        jtTestigo.setRowSelectionInterval(fila, fila);
        jtTestigo.scrollRectToVisible(jtTestigo.getCellRect(fila, 0, true));
        setNecesitaGuardarTestigo(true);
        }
        catch (Exception e) {
        JOptionPane.showMessageDialog(null, e.getMessage());
        setNecesitaGuardarTestigo(false);
        }
    }
    //*********************************ELIMINAR********************************************/////
    //////////////////////////////////ACTA///////////////////////////////////////////////
    @Action(enabledProperty = "actaSeleccionada")
    public void eliiminarActa()
    {
        try {
        int resp = JOptionPane.showConfirmDialog(null, "¿Confirmas la Eliminacion del Registro?","Aviso",
                JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,null);
        if (resp == JOptionPane.YES_NO_OPTION)
        {
        int[] seleccionados = jtActas.getSelectedRows();
        List<Acta> eliminados = new ArrayList<Acta>(seleccionados.length);
        for (int i = 0; i < seleccionados.length; i++) {
            Acta acta = listActas.get(jtActas.convertRowIndexToModel(seleccionados[i]));
            eliminados.add(acta);
            emRegistro.remove(acta);
        }
        listActas.removeAll(eliminados);
        setNecesitaGuardarActa(true);
        }
        }
         catch(Exception e)
        {
            JOptionPane.showMessageDialog(null,e.getMessage());
        }
    }
    public boolean isActaSeleccionada() {
        return jtActas.getSelectedRow() != -1;
    }
    //////////////////////////////////COMPARECIO///////////////////////////////////////////////
    @Action(enabledProperty = "comparecioSeleccionado")
    public void eliminaComparecio()
    {
        try {
        int resp = JOptionPane.showConfirmDialog(null, "¿Confirmas la Eliminacion del Registro?","Aviso",
                JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,null);
        if (resp == JOptionPane.YES_NO_OPTION)
        {
        int[] seleccionados = jtComparecio.getSelectedRows();
        List<Comparecio> eliminados = new ArrayList<Comparecio>(seleccionados.length);
        for (int i = 0; i < seleccionados.length; i++) {
            Comparecio com = listComparecio.get(jtComparecio.convertRowIndexToModel(seleccionados[i]));
            eliminados.add(com);
            emRegistro.remove(com);
        }
        listComparecio.removeAll(eliminados);
        setNecesitaGuardarComparecio(true);
        }
        }
         catch(Exception e)
        {
            JOptionPane.showMessageDialog(null,e.getMessage());
        }
    }
    public boolean isComparecioSeleccionado() {
        return jtComparecio.getSelectedRow() != -1;
    }
    //////////////////////////////////JUEZ///////////////////////////////////////////////
    @Action(enabledProperty = "juezSeleccionado")
    public void eliminaJuez()
    {
        try {
        int resp = JOptionPane.showConfirmDialog(null, "¿Confirmas la Eliminacion del Registro?","Aviso",
                JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,null);
        if (resp == JOptionPane.YES_NO_OPTION)
        {
        int[] seleccionados = jtJueces.getSelectedRows();
        List<Juez> eliminados = new ArrayList<Juez>(seleccionados.length);
        for (int i = 0; i < seleccionados.length; i++) {
            Juez juez = listJuez.get(jtJueces.convertRowIndexToModel(seleccionados[i]));
            eliminados.add(juez);
            emRegistro.remove(juez);
        }
        listJuez.removeAll(eliminados);
        setNecesitaGuardarJuez(true);
        }
        }
         catch(Exception e)
        {
            JOptionPane.showMessageDialog(null,e.getMessage());
        }
    }
    public boolean isJuezSeleccionado() {
        return jtJueces.getSelectedRow() != -1;
    }
    //////////////////////////////////TESTIGO///////////////////////////////////////////////
    @Action(enabledProperty = "testigoSeleccionado")
    public void eliminarTestigo()
    {
        try {
        int resp = JOptionPane.showConfirmDialog(null, "¿Confirmas la Eliminacion del Registro?","Aviso",
                JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,null);
        if (resp == JOptionPane.YES_NO_OPTION)
        {
        int[] seleccionados = jtTestigo.getSelectedRows();
        List<Testigo> eliminados = new ArrayList<Testigo>(seleccionados.length);
        for (int i = 0; i < seleccionados.length; i++) {
            Testigo test = listTestigo.get(jtTestigo.convertRowIndexToModel(seleccionados[i]));
            eliminados.add(test);
            emRegistro.remove(test);
        }
        listTestigo.removeAll(eliminados);
        setNecesitaGuardarTestigo(true);
        }
        }
         catch(Exception e)
        {
            JOptionPane.showMessageDialog(null,e.getMessage());
        }
    }
    public boolean isTestigoSeleccionado() {
        return jtTestigo.getSelectedRow() != -1;
    }
    //*********************************GUARDAR********************************************/////
    //////////////////////////////////ACTA///////////////////////////////////////////////
    @Action(enabledProperty = "necesitaGuardarActa")
    public Task guardarActa() {
        return new GuardarActaTask(org.jdesktop.application.Application.getInstance(db_proyect.Db_proyectApp.class));
    }
    private class GuardarActaTask extends org.jdesktop.application.Task<Object, Void> {
        GuardarActaTask(org.jdesktop.application.Application app) {
            // Runs on the EDT.  Copy GUI state that
            // doInBackground() depends on from parameters
            // to GuardarActaTask fields, here.
            super(app);
        }
        @Override protected Object doInBackground() {
            try {
           int resp = JOptionPane.showConfirmDialog(null, "¿Guardar Cambios?","Aviso",
           JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE,null);
           if (resp == JOptionPane.YES_NO_OPTION)
           {
              emRegistro.getTransaction().commit();
              emRegistro.getTransaction().begin();
              n = true;
           }else{
               n=false;}
           }
           catch (RollbackException e)
           {
                emRegistro.getTransaction().begin();
                List<Acta> listaA = new ArrayList<Acta>(listActas.size());
                for(Acta acta : listActas){
                    listaA.add(emRegistro.merge(acta));
           }
           listActas.clear();
           listActas.addAll(listaA);
           }
            return null;  // return your result
        }
        @Override protected void succeeded(Object result) {
            if(n==true)
            {
            setNecesitaGuardarActa(false); refreshTablaTestigos(); refreshTablaActas(); refreshTablaComparecio();}
            else
            {
                setNecesitaGuardarActa(true);}
        }
    }
    private boolean necesitaGuardarActa = false;
    public boolean isNecesitaGuardarActa() {
        return necesitaGuardarActa;
    }
    public void setNecesitaGuardarActa(boolean b) {
        boolean old = isNecesitaGuardarActa();
        this.necesitaGuardarActa = b;
        firePropertyChange("necesitaGuardarActa", old, isNecesitaGuardarActa());
    }
    //////////////////////////////////COMPARECIO///////////////////////////////////////////////
    @Action(enabledProperty = "necesitaGuardarComparecio")
    public Task guardarComparecio() {
        return new GuardarComparecioTask(org.jdesktop.application.Application.getInstance(db_proyect.Db_proyectApp.class));
    }
    private class GuardarComparecioTask extends org.jdesktop.application.Task<Object, Void> {
        GuardarComparecioTask(org.jdesktop.application.Application app) {
            // Runs on the EDT.  Copy GUI state that
            // doInBackground() depends on from parameters
            // to GuardarComparecioTask fields, here.
            super(app);
        }
        @Override protected Object doInBackground() {
            try {
           int resp = JOptionPane.showConfirmDialog(null, "¿Guardar Cambios?","Aviso",
           JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE,null);
           if (resp == JOptionPane.YES_NO_OPTION)
           {
              emRegistro.getTransaction().commit();
              emRegistro.getTransaction().begin();
              n2 = true;
           }else{
               n2=false;}
           }
           catch (RollbackException e)
           {
                emRegistro.getTransaction().begin();
                List<Comparecio> listaA = new ArrayList<Comparecio>(listComparecio.size());
                for(Comparecio com : listComparecio){
                    listaA.add(emRegistro.merge(com));
           }
           listComparecio.clear();
           listComparecio.addAll(listaA);
           }
            return null;  // return your result
        }
        @Override protected void succeeded(Object result) {
            if(n2==true)
            {
            setNecesitaGuardarComparecio(false); refreshTablaComparecio();}
            else
            {
                setNecesitaGuardarComparecio(true);}
        }
    }
    private boolean necesitaGuardarComparecio = false;
    public boolean isNecesitaGuardarComparecio() {
        return necesitaGuardarComparecio;
    }
    public void setNecesitaGuardarComparecio(boolean b) {
        boolean old = isNecesitaGuardarComparecio();
        this.necesitaGuardarComparecio = b;
        firePropertyChange("necesitaGuardarComparecio", old, isNecesitaGuardarComparecio());
    }
    //////////////////////////////////JUEZ///////////////////////////////////////////////
     @Action(enabledProperty = "necesitaGuardarJuez")
    public Task guardarJuez() {
        return new GuardarJuezTask(org.jdesktop.application.Application.getInstance(db_proyect.Db_proyectApp.class));
    }
    private class GuardarJuezTask extends org.jdesktop.application.Task<Object, Void>
    {
        GuardarJuezTask(org.jdesktop.application.Application app) {
            // Runs on the EDT.  Copy GUI state that
            // doInBackground() depends on from parameters
            // to GuardarJuezTask fields, here.
            super(app);
        }
        @Override protected Object doInBackground() {
            try {
           int resp = JOptionPane.showConfirmDialog(null, "¿Guardar Cambios?","Aviso",
           JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE,null);
           if (resp == JOptionPane.YES_NO_OPTION)
           {
              emRegistro.getTransaction().commit();
              emRegistro.getTransaction().begin();
              n3 = true;
           }else{
               n3=false;}
           }
           catch (RollbackException e)
           {
                emRegistro.getTransaction().begin();
                List<Juez> listaA = new ArrayList<Juez>(listJuez.size());
                for(Juez juez : listJuez){
                    listaA.add(emRegistro.merge(juez));
           }
           listJuez.clear();
           listJuez.addAll(listaA);
           }
            return null;  // return your result
        }
        @Override protected void succeeded(Object result) {
            if(n3==true)
            {
            setNecesitaGuardarJuez(false); refreshTablaJuez();}
            else
            {
                setNecesitaGuardarJuez(true);}
        }
    }
    private boolean necesitaGuardarJuez = false;
    public boolean isNecesitaGuardarJuez() {
        return necesitaGuardarJuez;
    }
    public void setNecesitaGuardarJuez(boolean b) {
        boolean old = isNecesitaGuardarJuez();
        this.necesitaGuardarJuez = b;
        firePropertyChange("necesitaGuardarJuez", old, isNecesitaGuardarJuez());
    }
    //////////////////////////////////TESTIGO///////////////////////////////////////////////
    @Action(enabledProperty = "necesitaGuardarTestigo")
    public Task guardarTestigo() {
        return new GuardarTestigoTask(org.jdesktop.application.Application.getInstance(db_proyect.Db_proyectApp.class));
    }
    private class GuardarTestigoTask extends org.jdesktop.application.Task<Object, Void> {
        GuardarTestigoTask(org.jdesktop.application.Application app) {
            // Runs on the EDT.  Copy GUI state that
            // doInBackground() depends on from parameters
            // to GuardarTestigoTask fields, here.
            super(app);
        }
        @Override protected Object doInBackground() {
            try {
           int resp = JOptionPane.showConfirmDialog(null, "¿Guardar Cambios?","Aviso",
           JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE,null);
           if (resp == JOptionPane.YES_NO_OPTION)
           {
              emRegistro.getTransaction().commit();
              emRegistro.getTransaction().begin();
              //refreshTablaTestigos();
              //refreshTablaTestigos();
              //refreshTablaActas();
              
              n4 = true;
           }else{
               n4=false;}
           }
           catch (RollbackException e)
           {
                emRegistro.getTransaction().begin();
                List<Testigo> listaA = new ArrayList<Testigo>(listTestigo.size());
                for(Testigo test : listTestigo){
                    listaA.add(emRegistro.merge(test));
           }
           listTestigo.clear();
           listTestigo.addAll(listaA);
           }
            return null;  // return your result
        }
        @Override protected void succeeded(Object result) {
            if(n4==true)
            {
            setNecesitaGuardarTestigo(false); refreshTablaActas(); refreshTablaTestigos();}
            else
            {
                setNecesitaGuardarTestigo(true);}
        }
    }
    private boolean necesitaGuardarTestigo = false;
    public boolean isNecesitaGuardarTestigo() {
        return necesitaGuardarTestigo;
    }
    public void setNecesitaGuardarTestigo(boolean b) {
        boolean old = isNecesitaGuardarTestigo();
        this.necesitaGuardarTestigo = b;
        firePropertyChange("necesitaGuardarTestigo", old, isNecesitaGuardarTestigo());
    }
    //*********************************REFRESH********************************************/////
    //////////////////////////////////ACTA///////////////////////////////////////////////
     @Action
    public Task refreshActa() {
        return new RefreshActaTask(org.jdesktop.application.Application.getInstance(db_proyect.Db_proyectApp.class));
    }
    private class RefreshActaTask extends org.jdesktop.application.Task<Object, Void> {
        RefreshActaTask(org.jdesktop.application.Application app) {
            // Runs on the EDT.  Copy GUI state that
            // doInBackground() depends on from parameters
            // to RefreshActaTask fields, here.
            super(app);
        }
        @Override protected Object doInBackground() {
            emRegistro.getTransaction().rollback();
            emRegistro.getTransaction().begin();
            List<Acta> listaA = queryActa.getResultList();
            for(Acta acta : listaA){
                emRegistro.refresh(acta);
            }
            listActas.clear();
            listActas.addAll(listaA);
            return null;  // return your result
        }
        @Override protected void succeeded(Object result) {
            setNecesitaGuardarActa(false);
        }
    }
     //////////////////////////////////COMPARECIO///////////////////////////////////////////////
    @Action
    public Task refreshComparecio() {
        return new RefreshComparecioTask(org.jdesktop.application.Application.getInstance(db_proyect.Db_proyectApp.class));
    }
    private class RefreshComparecioTask extends org.jdesktop.application.Task<Object, Void>
    {
        RefreshComparecioTask(org.jdesktop.application.Application app) {
            // Runs on the EDT.  Copy GUI state that
            // doInBackground() depends on from parameters
            // to RefreshComparecioTask fields, here.
            super(app);
        }
        @Override protected Object doInBackground() {
            emRegistro.getTransaction().rollback();
            emRegistro.getTransaction().begin();
            List<Comparecio> listaA = queryComparecio.getResultList();
            for(Comparecio com : listaA){
                emRegistro.refresh(com);
            }
            listComparecio.clear();
            listComparecio.addAll(listaA);
            return null;  // return your result
        }
        @Override protected void succeeded(Object result) {
            setNecesitaGuardarComparecio(false);
        }
    }
    //////////////////////////////////JUEZ///////////////////////////////////////////////
     @Action
    public Task refreshJuez() {
        return new RefreshJuezTask(org.jdesktop.application.Application.getInstance(db_proyect.Db_proyectApp.class));
    }
    private class RefreshJuezTask extends org.jdesktop.application.Task<Object, Void>
    {
        RefreshJuezTask(org.jdesktop.application.Application app) {
            // Runs on the EDT.  Copy GUI state that
            // doInBackground() depends on from parameters
            // to RefreshJuezTask fields, here.
            super(app);
        }
        @Override protected Object doInBackground() {
           emRegistro.getTransaction().rollback();
            emRegistro.getTransaction().begin();
            List<Juez> listaA = queryJuez.getResultList();
            for(Juez juez : listaA){
                emRegistro.refresh(juez);
            }
            listJuez.clear();
            listJuez.addAll(listaA);
            return null;  // return your result
        }
        @Override protected void succeeded(Object result) {
            setNecesitaGuardarJuez(false);
        }
    }
    //////////////////////////////////TESTIGO///////////////////////////////////////////////
    @Action
    public Task refreshTestigo() {
        return new RefreshTestigoTask(org.jdesktop.application.Application.getInstance(db_proyect.Db_proyectApp.class));
    }
    private class RefreshTestigoTask extends org.jdesktop.application.Task<Object, Void>
    {
        RefreshTestigoTask(org.jdesktop.application.Application app) {
            // Runs on the EDT.  Copy GUI state that
            // doInBackground() depends on from parameters
            // to RefreshTestigoTask fields, here.
            super(app);
        }
        @Override protected Object doInBackground() {
            emRegistro.getTransaction().rollback();
            emRegistro.getTransaction().begin();
            List<Testigo> listaA = queryTestigo.getResultList();
            for(Testigo test : listaA){
                emRegistro.refresh(test);
            }
            listTestigo.clear();
            listTestigo.addAll(listaA);
            return null;  // return your result
        }
        @Override protected void succeeded(Object result) {
            setNecesitaGuardarTestigo(false);
        }
    }
    //*********************************LISTENERS********************************************/////
    private void initListenersActa()
    {
        jtActas.getSelectionModel().addListSelectionListener(new ListSelectionListener()
        {
            public void valueChanged(ListSelectionEvent e)
            {
                firePropertyChange("actaSeleccionada", !isActaSeleccionada(), isActaSeleccionada());
                jpDatosActa.setVisible((jtActas.getSelectedRowCount() == 1) ? true : false);
            }
        });
        bindingGroup.addBindingListener(new AbstractBindingListener()
        {
            @Override
            public void targetChanged(Binding binding, PropertyStateEvent event)
            {
               setNecesitaGuardarActa(true);
            }
        });
    }
    private void initListenersComparecio()
    {
        jtComparecio.getSelectionModel().addListSelectionListener(new ListSelectionListener()
        {
            public void valueChanged(ListSelectionEvent e)
            {
                firePropertyChange("comparecioSeleccionado", !isComparecioSeleccionado(), isComparecioSeleccionado());
                jpDatosCompa.setVisible((jtComparecio.getSelectedRowCount() == 1) ? true : false);
            }
        });
        bindingGroup.addBindingListener(new AbstractBindingListener()
        {
            @Override
            public void targetChanged(Binding binding, PropertyStateEvent event)
            {
               setNecesitaGuardarComparecio(true);
            }
        });
    }
    private void initListenersJuez()
    {
        jtJueces.getSelectionModel().addListSelectionListener(new ListSelectionListener()
        {
            public void valueChanged(ListSelectionEvent e)
            {
                firePropertyChange("juezSeleccionado", !isJuezSeleccionado(), isJuezSeleccionado());
                jpDatosJuez.setVisible((jtJueces.getSelectedRowCount() == 1) ? true : false);
            }
        });
        bindingGroup.addBindingListener(new AbstractBindingListener()
        {
            @Override
            public void targetChanged(Binding binding, PropertyStateEvent event)
            {
               setNecesitaGuardarJuez(true);
            }
        });
    }
    private void initListenersTestigo()
    {
        jtTestigo.getSelectionModel().addListSelectionListener(new ListSelectionListener()
        {
            public void valueChanged(ListSelectionEvent e)
            {
                firePropertyChange("testigoSeleccionado", !isTestigoSeleccionado(), isTestigoSeleccionado());
                jpDatosTestigo.setVisible((jtTestigo.getSelectedRowCount() == 1) ? true : false);
            }
        });
        bindingGroup.addBindingListener(new AbstractBindingListener()
        {
            @Override
            public void targetChanged(Binding binding, PropertyStateEvent event)
            {
               setNecesitaGuardarTestigo(true);
            }
        });
    }
    //*********************************Metodos********************************************/////
    private void validadorNumeros(JTextField jtf)
    {
        jtf.addKeyListener(new KeyAdapter() {
        public void keyTyped(KeyEvent e) {
        char c = e.getKeyChar();
        if (!(Character.isDigit(c) ||
        (c == KeyEvent.VK_BACK_SPACE) ||
        (c == KeyEvent.VK_DELETE))) {
        getToolkit().beep();
        e.consume();
        }
        }
        });
    }
    private void comboboxIndex()
    {
        cboGenero.setSelectedIndex(-1);
        cboJuezActa.setSelectedIndex(-1);
        cboComparecioActa.setSelectedIndex(-1);
        cboTestigoActa.setSelectedIndex(-1);
        cboActaTestigo.setSelectedIndex(-1);
        cboActa.setSelectedIndex(-1);
        cboParentesco.setSelectedIndex(-1);
    }
    private void panelesVisibles()
    {
        jpDatosActa.setVisible(false);
        jpDatosJuez.setVisible(false);
        jpDatosTestigo.setVisible(false);
        jpDatosCompa.setVisible(false);
    }
    private void refreshTablaActas()
    {
            emRegistro.getTransaction().rollback();
            emRegistro.getTransaction().begin();
            List<Acta> listaA = queryActa.getResultList();
            for(Acta acta : listaA){
                emRegistro.refresh(acta);
            }
            listActas.clear();
            listActas.addAll(listaA);
            jpDatosActa.setVisible(false);
            setNecesitaGuardarActa(false);
    }
    private void refreshTablaTestigos()
    {
            emRegistro.getTransaction().rollback();
            emRegistro.getTransaction().begin();
            List<Testigo> listaA = queryTestigo.getResultList();
            for(Testigo test : listaA){
                emRegistro.refresh(test);
            }
            listTestigo.clear();
            listTestigo.addAll(listaA);
            jpDatosTestigo.setVisible(false);
            setNecesitaGuardarTestigo(false);
    }
    private void refreshTablaComparecio()
    {
            emRegistro.getTransaction().rollback();
            emRegistro.getTransaction().begin();
            List<Comparecio> listaA = queryComparecio.getResultList();
            for(Comparecio com : listaA){
                emRegistro.refresh(com);
            }
            listComparecio.clear();
            listComparecio.addAll(listaA);
            jpDatosCompa.setVisible(false);
            setNecesitaGuardarComparecio(false);
    }
    private void refreshTablaJuez()
    {
            emRegistro.getTransaction().rollback();
            emRegistro.getTransaction().begin();
            List<Juez> listaA = queryJuez.getResultList();
            for(Juez juez : listaA){
                emRegistro.refresh(juez);
            }
            listJuez.clear();
            listJuez.addAll(listaA);
            jpDatosJuez.setVisible(false);
            setNecesitaGuardarJuez(false);
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JComboBox cboActa;
    private javax.swing.JComboBox cboActaTestigo;
    private javax.swing.JComboBox cboComparecioActa;
    private javax.swing.JComboBox cboGenero;
    private javax.swing.JComboBox cboJuezActa;
    private javax.swing.JComboBox cboParentesco;
    private javax.swing.JComboBox cboTestigoActa;
    private javax.persistence.EntityManager emRegistro;
    private java.util.List<bd_registro_civil.Genero> generoList;
    private javax.persistence.Query generoQuery;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton16;
    private javax.swing.JButton jButton17;
    private javax.swing.JButton jButton18;
    private javax.swing.JButton jButton19;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton20;
    private javax.swing.JButton jButton21;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private com.toedter.calendar.JDateChooser jDateChooser2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane jTabbedPane3;
    private javax.swing.JTextField jTextField14;
    private javax.swing.JTextField jTextField15;
    private javax.swing.JTextField jTextField20;
    private javax.swing.JTextField jTextField21;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JTextField jTextField5;
    private javax.swing.JTextField jTextField8;
    private javax.swing.JTextField jTextField9;
    private com.toedter.calendar.JTextFieldDateEditor jTextFieldDateEditor1;
    private com.toedter.calendar.JDateChooser jdcFechaReg;
    private javax.swing.JPanel jpDatosActa;
    private javax.swing.JPanel jpDatosCompa;
    private javax.swing.JPanel jpDatosJuez;
    private javax.swing.JPanel jpDatosTestigo;
    private javax.swing.JTable jtActas;
    private javax.swing.JTable jtComparecio;
    private javax.swing.JTable jtJueces;
    private javax.swing.JTable jtTestigo;
    private com.toedter.calendar.JTextFieldDateEditor jtdHoraNac;
    private java.util.List<Acta> listActas;
    private java.util.List<Comparecio> listComparecio;
    private java.util.List<Juez> listJuez;
    private java.util.List<Testigo> listTestigo;
    private java.util.List<bd_registro_civil.Parentesco> parentescoList;
    private javax.persistence.Query parentescoQuery;
    private javax.persistence.Query queryActa;
    private javax.persistence.Query queryComparecio;
    private javax.persistence.Query queryJuez;
    private javax.persistence.Query queryTestigo;
    private UtilidadesRegistro.RenderActa renderActa1;
    private UtilidadesRegistro.RenderComparecio renderComparecio1;
    private UtilidadesRegistro.RenderGenero renderGenero1;
    private UtilidadesRegistro.RenderJuez renderJuez1;
    private UtilidadesRegistro.RenderParentesco renderParentesco1;
    private UtilidadesRegistro.RenderTestigo renderTestigo1;
    private javax.swing.JTextField txtLugarNac;
    private org.jdesktop.beansbinding.BindingGroup bindingGroup;
    // End of variables declaration//GEN-END:variables

}
